export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({

  sysUser: {
    sysUserList (data = {}, param = {}) {
      return request({
        url: '/auth/system/user/info/page/search?sorts=id&direction=desc&page=' + (param.page - 1) + '&size=' + param.size,
        method: 'post',
        data: data
      })
    },
    sysUserFindById (data) {
      return request({
        url: '/auth/system/user/info/findById?id=' + data.id,
        method: 'get',
        data: data
      })
    },
    sysUserUpdateById (data) {
      return request({
        url: '/auth/system/user/info/update',
        method: 'post',
        data: data
      })
    },
    sysUserInsert (data) {
      return request({
        url: '/auth/system/user/info/insert',
        method: 'post',
        data: data
      })
    },
    sysUserDeleteById (data) {
      return request({
        url: '/auth/system/user/info/delete',
        method: 'post',
        data: data
      })
    },
    onSelectUserInfoList (data = {}, param = {}) {
      return request({
        url: '/auth/system/user/info/onSelectUserInfoList?sorts=id&direction=desc&page=' + (param.page - 1) + '&size=' + param.size,
        method: 'get',
        data: data
      })
    }
  }
})
